package com.whmskj.xjlhsc.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 设备维保机台分配表
 *
 * @author lk
 * @since 2025-06-10 14:48:04
 */
@Data
@TableName("ys_equipment_mtn_plan_allocation")
@Schema(description = "设备维保机台分配人表")
public class EquipmentMtnPlanAllocation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long allocaId;

    /**
     * 维保计划id
     */
    @TableField(value = "wb_plan_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long wbPlanId;

    /**
     * 员工code
     */
    @TableField(value = "user_id")
    @Schema(description = "员工code", example = "")
    private String userId;

    /**
     * 工序字典ID
     */
    @Schema(description = "工序字典ID（工序字典codeSCMa-process）", example = "")
    private Integer process;

    /**
     * 设备ids
     */
    @Schema(description = "设备ids逗号拼接", example = "1,5,7,9")
    @TableField(value = "equipment_ids")
    private String equipmentIds;

    /**
     * 设备ids
     */
    @TableField(exist = false)
    private List<String> equipmentIdsList;

}
